package game.view.loading
{
	import fl.controls.TextArea;
	
	import flash.display.Sprite;
	import flash.text.TextField;
	
	import utiles.StageProxy;
	
	public class LoadingView extends Sprite
	{
		private var _skin:Sprite;
		public var txtPrompt:TextArea;
		
		public function LoadingView()
		{
			this.mouseChildren = false;
			
			this.graphics.beginFill(0, 0);
			this.graphics.drawRect(0, 0, StageProxy.width, StageProxy.height);
			this.graphics.endFill();
			
			_skin = new Sprite();
			_skin.graphics.beginFill(0x116aaf);
			_skin.graphics.drawRect(0, 0, StageProxy.width, StageProxy.height);
			_skin.graphics.endFill();
			_skin.alpha = 0.5;
			addChild(_skin);
			
			txtPrompt = new TextArea();
			txtPrompt.wordWrap = true;
			txtPrompt.width = _skin.width;
			txtPrompt.height = _skin.height;
			_skin.addChild(txtPrompt);
		}
	}
}